package com.seari.pojo;

import org.apache.commons.lang3.StringUtils;

public class MessageBean extends BaseBean {

	private static final long serialVersionUID = -8493141583654715836L;
	

	private String code;
	
	
	private String type;
	
	
	private String message;
	
	
	private Object data;
	
	private int total;
	
	
	
	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public MessageBean(){}
	
	public MessageBean(String type,String message){
		 this.type=type;
		 this.message=message; 
    }

	public MessageBean(String code,String type,String message){
		this.code = code;
		this.type=type;
		this.message=message;
	}
        
    public void appendMessage(String str)
    {
        if(StringUtils.isBlank(this.message))
        {
            this.message = "";
        }
        this.message = this.message + str + "\n";
    }
        
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
}
